<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>OpenShoe: udd_ctrl_request_t Struct Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenShoe
   &#160;<span id="projectnumber">0.1</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-attribs">Data Fields</a>  </div>
  <div class="headertitle">
<div class="title">udd_ctrl_request_t Struct Reference<div class="ingroups"><a class="el" href="group__udd__group.html">USB Device Driver (UDD)</a></div></div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="udd_ctrl_request_t" -->
<p>Global variable to give and record information of the setup request management.  
 <a href="structudd__ctrl__request__t.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="udd_8h_source.html">udd.h</a>&gt;</code></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structudd__setup__req__t.html">udd_setup_req_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structudd__ctrl__request__t.html#a911ea25898e490e2095496e5fe24b1fe">req</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Data received in USB SETUP packet.  <a href="#a911ea25898e490e2095496e5fe24b1fe"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint8_t *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structudd__ctrl__request__t.html#a30ee45cc3e128d219f779f32635b6ca0">payload</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Point to buffer to send or fill with data following SETUP packet.  <a href="#a30ee45cc3e128d219f779f32635b6ca0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structudd__ctrl__request__t.html#a0ba5f434c1f252576dd707db0034917c">payload_size</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structudd__ctrl__request__t.html#a942a0402e868519a5ce6864941dd939e">callback</a> )(void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">when the calbbacks "callback/over_under_run" are called.  <a href="#a942a0402e868519a5ce6864941dd939e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structudd__ctrl__request__t.html#afb9dab5e58e325dae17ea02345b097c4">over_under_run</a> )(void)</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Global variable to give and record information of the setup request management. </p>
<p>This global variable allows to decode and response a setup request. It can be updated by <a class="el" href="group__udc__group.html#ga58c2916d7984e0e5b2143cadf4af6080" title="Main routine to manage the USB SETUP request.">udc_process_setup()</a> from UDC or *setup() from UDIs. </p>
</div><hr/><h2>Field Documentation</h2>
<a class="anchor" id="a942a0402e868519a5ce6864941dd939e"></a><!-- doxytag: member="udd_ctrl_request_t::callback" ref="a942a0402e868519a5ce6864941dd939e" args=")(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void(* <a class="el" href="structudd__ctrl__request__t.html#a942a0402e868519a5ce6864941dd939e">udd_ctrl_request_t::callback</a>)(void)</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>when the calbbacks "callback/over_under_run" are called. </p>
<p>Callback called after reception of ZLP from setup request </p>

</div>
</div>
<a class="anchor" id="afb9dab5e58e325dae17ea02345b097c4"></a><!-- doxytag: member="udd_ctrl_request_t::over_under_run" ref="afb9dab5e58e325dae17ea02345b097c4" args=")(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool(* <a class="el" href="structudd__ctrl__request__t.html#afb9dab5e58e325dae17ea02345b097c4">udd_ctrl_request_t::over_under_run</a>)(void)</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Callback called when the buffer given (.payload) is full or empty. </p>

</div>
</div>
<a class="anchor" id="a30ee45cc3e128d219f779f32635b6ca0"></a><!-- doxytag: member="udd_ctrl_request_t::payload" ref="a30ee45cc3e128d219f779f32635b6ca0" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t* <a class="el" href="structudd__ctrl__request__t.html#a30ee45cc3e128d219f779f32635b6ca0">udd_ctrl_request_t::payload</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Point to buffer to send or fill with data following SETUP packet. </p>

</div>
</div>
<a class="anchor" id="a0ba5f434c1f252576dd707db0034917c"></a><!-- doxytag: member="udd_ctrl_request_t::payload_size" ref="a0ba5f434c1f252576dd707db0034917c" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint16_t <a class="el" href="structudd__ctrl__request__t.html#a0ba5f434c1f252576dd707db0034917c">udd_ctrl_request_t::payload_size</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Size of buffer to send or fill, and content the number of byte transfered </p>

</div>
</div>
<a class="anchor" id="a911ea25898e490e2095496e5fe24b1fe"></a><!-- doxytag: member="udd_ctrl_request_t::req" ref="a911ea25898e490e2095496e5fe24b1fe" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structudd__setup__req__t.html">udd_setup_req_t</a> <a class="el" href="structudd__ctrl__request__t.html#a911ea25898e490e2095496e5fe24b1fe">udd_ctrl_request_t::req</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Data received in USB SETUP packet. </p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="udd_8h_source.html">udd.h</a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Mon Dec 19 2011 21:04:55 for OpenShoe by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
